<?php if ($this->viewPage) { ?>
    <div id="count-view"><img src="/img/page_small.png"/> просмотров:<?php
        echo $this->viewPage;
        if (!empty($this->cntComments)) {
            ?>
            | <img src="/img/comment_small.gif"/><a style="font-weight: normal; color: #B2B2B2; border-bottom: none; text-decoration: none" href="#comments-link"> комметариев:</a> <?php echo $this->cntComments ?>
        <?php } ?>
    </div>
    <?php
}
echo stripcslashes($this->content)
?>
<?php if (!empty($this->aShotrStoriesInfo)) { ?>
    <?php if ($this->aShotrStoriesInfo[0]['type'] == 2) { // note, костыль конечно, но пока большей гибкости не нужно ?> 
        <div id="sstories-table-of-contents">
            <?php
            foreach ($this->aShotrStoriesCat as $iCatID => $sCat) {
                $iCountItem = 0;
                ?>
                <div style='float: left; width: 300px; padding-bottom: 5px;'>
                    <?php foreach ($this->aShotrStoriesInfo as $aStory) { ?>   
                        <?php if ($aStory['category_id'] == $iCatID) { ?>
                            <?php if (empty($iCountItem)) { ?>
                                <?php echo $sCat ?>
                                <?php $iCountItem++; ?>
                            <?php } ?>
                            <br>    <a style="font-size: 12px;" href="#<?php echo $aStory['title'] ?>"><?php echo $aStory['title'] ?></a>
                        <?php } ?>
                    <?php } ?>
                </div>
            <?php } ?>
        </div>
        <div style='clear: left'>&nbsp; </div>
    <?php } ?>
    <div id="shortStoryBlock">
        <?php foreach ($this->aShotrStoriesInfo as $aStory) { ?>    
            <div style="padding: 8px; font-size: 14px; font-weight: bold">
                <a name="<?php echo $aStory['title'] ?>"></a>
                <a href="<?php echo $aStory['title'] ?>"></a><?php echo $aStory['title'] ?> <span style="font-weight: normal"><?php echo  (!empty($this->aShotrStoriesCat[$aStory['category_id']])) ? ('('.$this->aShotrStoriesCat[$aStory['category_id']].')') : '' ?></span>
                &nbsp;
                <span class="date-label">
                    <?php echo Super_Controller::getDateFormat($aStory['public_date'], TRUE) ?>
                </span>
            </div>
            <div class="border3px"><?php echo $aStory['content'] ?></div>
        <?php } ?>
    </div>
<?php } ?>
